/*
 * Copyright (c) 2010 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
 * in compliance with the License. You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under the License
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing permissions and limitations under
 * the License.
 */
/*
 * Warning! This file is generated. Modify at your own risk.
 */

package com.google.api.services.gan.model;

import com.google.api.client.http.HttpHeaders;
import com.google.api.client.json.GenericJson;
import com.google.api.client.util.Key;

/**
 * Model definition for Gan.CcOfferRewards.
 *
 * This class models an object which will be transmitted to or from the Gan service. To reduce the
 * data transferred during service requests, you may remove members that contain data elements that
 * your application does not need.
 *
 * For a detailed explanation, see: <a href="http://code.google.com/p/google-api-java-
 * client/wiki/Json"> http://code.google.com/p/google-api-java-client/wiki/Json</a>
 *
 * @author Google, Inc.
 */
public final class CcOfferRewards extends GenericJson {

  /**
   * The kind of purchases covered by this rule.
   */
  @Key("category")
  private String category;

  /** The kind of purchases covered by this rule. */
  public String getCategory() {
    return category;
  }

  /** The kind of purchases covered by this rule. */
  public CcOfferRewards setCategory(String category) {
    this.category = category;
    return this;
  }
  /**
   * The minimum purchase amount in the given category before this rule applies.
   */
  @Key("minRewardTier")
  private Double minRewardTier;

  /** The minimum purchase amount in the given category before this rule applies. */
  public Double getMinRewardTier() {
    return minRewardTier;
  }

  /** The minimum purchase amount in the given category before this rule applies. */
  public CcOfferRewards setMinRewardTier(Double minRewardTier) {
    this.minRewardTier = minRewardTier;
    return this;
  }
  /**
   * The maximum purchase amount in the given category for this rule to apply.
   */
  @Key("maxRewardTier")
  private Double maxRewardTier;

  /** The maximum purchase amount in the given category for this rule to apply. */
  public Double getMaxRewardTier() {
    return maxRewardTier;
  }

  /** The maximum purchase amount in the given category for this rule to apply. */
  public CcOfferRewards setMaxRewardTier(Double maxRewardTier) {
    this.maxRewardTier = maxRewardTier;
    return this;
  }
  /**
   * How long rewards granted by this rule last.
   */
  @Key("expirationMonths")
  private Double expirationMonths;

  /** How long rewards granted by this rule last. */
  public Double getExpirationMonths() {
    return expirationMonths;
  }

  /** How long rewards granted by this rule last. */
  public CcOfferRewards setExpirationMonths(Double expirationMonths) {
    this.expirationMonths = expirationMonths;
    return this;
  }
  /**
   * The number of units rewarded per purchase dollar.
   */
  @Key("amount")
  private Double amount;

  /** The number of units rewarded per purchase dollar. */
  public Double getAmount() {
    return amount;
  }

  /** The number of units rewarded per purchase dollar. */
  public CcOfferRewards setAmount(Double amount) {
    this.amount = amount;
    return this;
  }
  /**
   * Other limits, for example, if this rule only applies during an introductory period.
   */
  @Key("additionalDetails")
  private String additionalDetails;

  /** Other limits, for example, if this rule only applies during an introductory period. */
  public String getAdditionalDetails() {
    return additionalDetails;
  }

  /** Other limits, for example, if this rule only applies during an introductory period. */
  public CcOfferRewards setAdditionalDetails(String additionalDetails) {
    this.additionalDetails = additionalDetails;
    return this;
  }


}
